home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_vol_debristrigger.cog < prev    next >
Text File  |  1999-11-15  |  1KB  |  55 lines

  1. # Jones 3D Cog Script
  2. #
  3. # gen_no_opendoor.cog
  4. #
  5. # Generic Door Script
  6. #
  7. # [CMG]
  8. #
  9. # (C) 1997 LucasArts Entertainment Co. All Rights Reserved
  10. # ========================================================================================
  11.  
  12. symbols
  13.     
  14.     #..................MESSAGES................
  15.     message        entered        
  16.     message        user0        
  17.     
  18.     #..................TRIGGERS................
  19.     sector        triggerSECT
  20.     
  21.     #..................COGS................
  22.     cog            debcog
  23.     cog            tilecog
  24.  
  25.     #..................VARIABLES................
  26.     int            setoff=0                    local
  27.         
  28. end
  29.  
  30. # ========================================================================================
  31. code
  32.  
  33. entered:
  34. If (setoff != 0) return;
  35. If (GetSenderRef() == triggerSECT)
  36.     {
  37.            setoff = 1;
  38.         SendMessage(debcog, user0);
  39.     }
  40. return;
  41.  
  42. # ========================================================================================
  43. user0:
  44.  
  45. If (GetSenderRef() == tilecog)
  46. {
  47.     SendMessage(debcog, user1);
  48. }
  49. return;
  50.  
  51. # ========================================================================================
  52.     
  53. end
  54.  
  55.